﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;

namespace WinRTFramework.Common
{
    public class CustomFrame : Frame
    {
        public event NavigatedEventHandler BeforeNavigated;

        public CustomFrame()
        {
            this.Navigated += CustomFrame_Navigated;
        }

        void CustomFrame_Navigated(object sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            if (this.BeforeNavigated != null)
            {
                this.BeforeNavigated(sender, e);
            }
        }
    }
}
